@extends('admin.layout.main')

@section('content')
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="#">币种管理</a>
	</li>
	<li class="active"><a href="{{ url('admin/currency_list') }}">币种修改记录列表</a></li>
</ul><!-- /.breadcrumb -->

<div class="nav-search" id="nav-search">

	{{--<form class="form-search">--}}
		{{--<span class="input-icon">--}}
		{{--<input type="text" placeholder="搜索" class="nav-search-input" id="nav-search-input" autocomplete="off" />--}}
			{{--<i class="ace-icon fa fa-search nav-search-icon"></i>--}}
		{{--</span>--}}
	{{--</form>--}}
</div><!-- /.nav-search -->
</div>
<div class="page-content">
	<div class="row">
		<div class="col-xs-12">
			<div class="row">
				<div class="search-area well col-xs-12">
					<form action="">
						<div class="pull-left">
							<b class="text-primary">选择币种: </b>
							<div id="toggle-result-format" class="btn-group btn-overlap" data-toggle="buttons">
								<select class="" name="id">
									<option value='0'>全部</option>
									@foreach($curr as $v)
										<option value="{{$v->id}}">{{$v->name_en}}</option>
									@endforeach
								</select>
							</div>
							<button type="submit" class="btn btn-white btn-info btn-bold">查询</button>
						</div>
					</form>
				</div>
			</div>
			<!-- PAGE CONTENT BEGINS -->
			<div class="row">
				<div class="col-xs-12">
					<div class="clearfix">
						<div class="pull-right tableTools-container"></div>
					</div>
					<div>
						<table id="dynamic-table" class="table table-striped table-bordered table-hover">
							<thead>
								<tr>
									<th>排序</th>
									<th>货币LOGO</th>
									<th class="hidden-480">上线状态</th>
									<th>交易状态</th>
									<th>货币名称</th>
									<th>英文标识</th>
									<th>买卖手续费</th>
									<th>初定价</th>
									<th>发行量</th>
									<th>最大单次提币额度</th>
									<th>
										<i class="ace-icon fa fa-clock-o bigger-110 hidden-480"></i>
										更新时间
									</th>
									{{--<th class="hidden-480">操作</th></tr>--}}
							</thead>

							<tbody>
							@if(collect($list)->count() > 0)
							@foreach($list as $key=>$val)
								<tr>
									<td align="center">
										<a href="#">{{$key+1}}</a>
									</td>
									<td align="center" width="50xp"><img src="{{$val['logo']}}" alt="" width="100%" /></td>
									<td  align="center">
										{{$val['online_switch']}}
									</td>
									<td align="center">
										{{$val['pay_switch']}}
									</td>
									<td  align="center">
										{{$val['name']}}
									</td>
									<td align="center">
										{{$val['name_en']}}
									</td>
									<td align="center">{{$val['fee']}} %</td>
									<td align="center">{{$val['official_price']}}</td>
									<td align="center">{{$val['total']}}</td>
									<td align="center">{{$val['max_quota']}}</td>
									<td align="center">{{$val['created_at']}}</td>

									{{--<td><div class="hidden-sm hidden-xs action-buttons">--}}

											{{--<a class="green" href="currency_editor?id={{$val['id']}}">--}}
												{{--<i class="ace-icon fa fa-pencil bigger-130"></i>--}}
											{{--</a>--}}

										{{--</div>--}}

										<div class="hidden-md hidden-lg">
											<div class="inline pos-rel">
												<button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown" data-position="auto">
													<i class="ace-icon fa fa-caret-down icon-only bigger-120"></i>
												</button>

												<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">


													<li>
														<a href="#" class="tooltip-success" data-rel="tooltip" title="Edit">
															<span class="green">
																<i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
															</span>
														</a>
													</li>

												</ul>
											</div>
										</div>
									</td>
								</tr>
							@endforeach
							@endif

							</tbody>
						</table>
					</div>
				</div>
			</div>
			<!-- PAGE CONTENT ENDS -->
		</div><!-- /.col -->

		<div class="modal-footer no-margin-top">

			{{ $data->links() }}
		</div>
	</div><!-- /.row -->
</div><!-- /.page-content -->

@endsection
